package admin.dao;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

import java.io.File;
import java.io.IOException;
import java.util.List;
import admin.model.AdminInfo;
import com.util.SqlMapLocator;

@SuppressWarnings("unused")
public class AdminDAO {
	private static AdminDAO singleton;
	
	private AdminDAO(){}
	
	public static AdminDAO getInstance(){
		return singleton;
	}
	
	public static AdminInfo select(AdminInfo Info) throws Exception{
		AdminInfo adminInfo = (AdminInfo)SqlMapLocator.getMapper().queryForObject("selectAdmin",Info);
		return adminInfo;
		//return null;
	}
}
